const express = require('express')
const app = express()
app.listen(3000)
app.use(express.static('./public'))

const bodyParser = require('body-parser')
const { login } = require('./router/login')
const { getAll, add, change, del ,getChange } = require('./router')

app.use(bodyParser.urlencoded({ extended: false }))

app.post('/login', login)
app.get('/getAll', getAll)
app.post('/add', add)
app.post('/getChange', getChange)
app.post('/change', change)

app.post('/del', del)


